const jsonwebtoken = require("jsonwebtoken");
const user = {
    username: "zhangsan",
    password: "123456"
}
const SECRET = "666";
const token = jsonwebtoken.sign(user,SECRET);
// console.log(token)

const decodetoken = jsonwebtoken.decode(token);
console.log(decodetoken)